import request from '@/utils/request'
const api_name = '/api/employee/file'
// 分页查询员工档案
export function getEmployeeFilePage(params) {
    return request({
        url: `${api_name}/page`,
        method: 'get',
        params
    })
}

// 获取员工档案详情
export function getEmployeeFileDetail(id) {
    return request({
        url: `${api_name}/${id}`,
        method: 'get'
    })
}

// 保存或更新员工档案
export function saveOrUpdateEmployeeFile(data) {
    return request({
        url: `${api_name}/save`,
        method: 'post',
        data
    })
}

// 批量删除员工档案
export function removeEmployeeFiles(ids) {
    return request({
        url: `${api_name}/batch`,
        method: 'delete',
        data: ids
    })
} 